package APong;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

import APong.States.GamePlayState;

public class GameManager extends StateBasedGame {
	public int PlayState = 1;
	public GameManager() {
		super("Pong!! :: V1");
		this.addState(new GamePlayState(PlayState));

	}

	@Override
	public void initStatesList(GameContainer gc) throws SlickException {
		this.enterState(PlayState);
	}
	public static AppGameContainer app;
	public static void main(String[] args) throws SlickException{
		app = new AppGameContainer(new GameManager());
		app.setUpdateOnlyWhenVisible(true);
		app.setDisplayMode(800, 600, false);
		app.setShowFPS(false);
		app.start();
	}
}
